package com.lin.manager.secure.ex;

import com.lin.manager.secure.enums.SecurityEnum;
import org.springframework.security.access.AccessDeniedException;

/**
 * @作者: 林江
 * @创建时间: 2024/3/16
 * @功能:
 */
public class CustomAccessDeniedException extends AccessDeniedException {

    private Integer code;

    public CustomAccessDeniedException(SecurityEnum ex) {
        super(ex.getDesc());
        this.code = ex.getCode();
    }

}
